package com.topc.oj.commit;


import com.topc.oj.enums.LanguageTypeEnum;

public class CodeCommitOne {

    private final String code;

    private final String input;

    private LanguageTypeEnum languageTypeEnum;

    private final int timeLimit;

    private final int memoryLimit;

    private String taskId;

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public CodeCommitOne(String code, String input, LanguageTypeEnum languageTypeEnum) {
        this(code,input,languageTypeEnum,1000,128);
    }

    public CodeCommitOne(String code, String input, LanguageTypeEnum languageTypeEnum, int timeLimit, int memoryLimit) {
        this.code = code;
        this.input = input;
        this.languageTypeEnum = languageTypeEnum;
        this.timeLimit = timeLimit;
        this.memoryLimit = memoryLimit;
    }

    public String getCode() {
        return code;
    }

    public String getInput() {
        return input;
    }

    public LanguageTypeEnum getLanguageTypeEnum() {
        return languageTypeEnum;
    }

    public int getTimeLimit() {
        return timeLimit;
    }

    public int getMemoryLimit() {
        return memoryLimit;
    }
}
